package cn.sumpu.app.guoguojie.dao;

import java.util.List;
import java.util.Map;

import cn.sumpu.app.guoguojie.domain.Blog;
import cn.sumpu.app.guoguojie.domain.Ext.BlogExt;
import cn.sumpu.app.guoguojie.exception.AppBusinessException;

public interface BlogDao {
	public void insert(Blog blog) throws AppBusinessException;

	public List<BlogExt> getBlogList(Map<String, Object> map)
			throws AppBusinessException;

	public void updateBlog(Blog blog) throws AppBusinessException;

	public void deleteBlogById(String id) throws AppBusinessException;

	public Blog getBlogById(String id) throws AppBusinessException;


	public List<BlogExt> getFrientFamilyBlog(Map<String, Object> map)
			throws AppBusinessException;


	public List<BlogExt> getBlogCountByClass(String member)
			throws AppBusinessException;

	public List<BlogExt> getFrientFamilyBlogCountByClass(String member)
			throws AppBusinessException;

}
